<!DOCTYPE html>
<html lang="zh-CN">
<?php
$title = "火影忍者";
$desc = "《火影忍者》正版授权格斗手游，100%还原原著剧情，疾风传篇章震撼登场！玩家可以扮演漩涡鸣人、宇智波佐助、春野樱等经典角色，体验忍者世界的激烈战斗。游戏包含剧情模式、竞技场、忍者考试等多种玩法，更有尾兽、通灵兽等强力助战。组建你的最强忍者小队，重燃火之意志，成为传说中的火影！";
$imgs = ["./img/img1.avif","./img/img2.avif","./img/img3.avif","./img/img4.avif","./img/img5.avif"];
?>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>《<?=$title?>》</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        .container {
            max-width: 1200px;
            margin: auto;
            padding: 0 20px;
        }

        header {
            background: #333;
            color: #fff;
            padding: 20px 0;
            text-align: center;
        }

        header h1 {
            margin: 0;
            font-size: 2.5rem;
        }

        nav {
            background: #e8491d;
            padding: 10px 0;
        }

        nav ul {
            list-style: none;
            padding: 0;
            display: flex;
            justify-content: center;
        }

        nav li {
            margin: 0 20px;
        }

        nav a {
            color: #fff;
            text-decoration: none;
            font-size: 1.2rem;
        }

        nav a:hover {
            text-decoration: underline;
        }

        .main-content {
            margin: 40px 0;
        }

        .image-gallery {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 20px;
        }

        .image-gallery img {
            max-width: 300px;
            border: 1px solid #ccc;
            padding: 5px;
        }

        footer {
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 20px 0;
        }
    </style>
</head>

<body>
    <header>
        <h1>话剧《<?=$title?>》介绍</h1>
    </header>

    <nav>
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">忍者介绍</a></li>
            <li><a href="#">第四次大战</a></li>
        </ul>
    </nav>

    <div class="container">
        <section id="main-content" class="main-content">
            <h2>火影忍者介绍</h2>
            <p><?=$desc?></p>


            <h2>忍者展示</h2>
            <div class="image-gallery">
            <?php   
            foreach ($imgs as $img) 
            echo <<<HTML
                    <img src="{$img}" alt="剧照">
            HTML;
            ?>
            </div>
        </section>
    </div>

    <footer>
        <p>版权所有 &copy; 2024 话剧社</p>
    </footer>
</body>

</html>